+2008-04-02 Mukund Sivaraman <muks@mukund.org>
+
+ Sparse fixes.
+
+ * babl/babl-internal.h: fflush() takes pointer.
+
+ * babl/babl-conversion.c: Don't mix code and declarations.
+
+ * babl/babl-fish-reference.c: Fixed array assignment.
+
2008-04-03 Øyvind Kolås <pippin@gimp.org>
Applied patch from Jan Heller that ports BablFishPath class to the new
Babl *source;
Babl *destination;
+ char *name;
+
va_start (varg, first_arg);
source = (Babl *) arg;
destination = va_arg (varg, Babl *);
type = BABL_CONVERSION_PLANAR;
}
- char * name = create_name (source, destination, type);
-
+ name = create_name (source, destination, type);
+
babl = babl_db_exist (db, id, name);
- if (babl)
+ if (babl)
{
/* There is an instance already registered by the required id/name,
* returning the preexistent one instead.
babl_db_insert (db, babl);
if (!source->type.from_list)
source->type.from_list = babl_list_init_with_size (BABL_CONVERSIONS);
- babl_list_insert_last (source->type.from_list, babl);
+ babl_list_insert_last (source->type.from_list, babl);
return babl;
}
dst_img->data[0] = destination_buf;
dst_img->type[0] = (BablType *) babl_type_id (BABL_DOUBLE);
dst_img->pitch[0] = destination_fmt->bytes_per_pixel;
- dst_img->stride = 0;
+ dst_img->stride[0] = 0;
for (i = 0; i < destination_fmt->components; i++)
{